﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>SqlJoinForm</title>
    <style type="text/css">
        div, table, tr, td {
            margin: 0px;
            padding: 0px;
        }

        .myTable {
            width: 800px;
            margin: 20px auto;
            border-collapse: collapse;
        }

            .myTable td, .myTable th {
                height: 30px;
                line-heigh: 30px;
                padding: 6px;
            }
    </style>
</head>
<body>
    <table class="myTable" border="1">
        <tr>
            <th>员工编号：</th>
            <th>部门名称：</th>
            <th>员工姓名：</th>
            <th>员工电话：</th>
            <th>所在地区：</th>
            <th>员工工资：</th>
            
        </tr>
        @foreach (var item in ViewBag.listView)
        {


            <tr>
                <td>@item.EmpId</td>
                <td>@item.TheDept.DeptName</td>
                <td>@item.EmpName</td>
                <td>@item.EmpPhone</td>
                <td>@item.EmpArea</td>
                <td>@item.EmpSalary</td>              

            </tr>
        }
    </table>
</body>
</html>
